package com.wanhe.base.model.holder;


import com.wanhe.base.model.base.DishesType;

import java.util.HashMap;
import java.util.List;

/**
 * 菜品编号类型关联缓存
 * Created by Administrator on 2016/6/16.
 */
public class DishNOHolder extends HashMap<String, DishesType> {
    private static DishNOHolder ourInstance;

    public synchronized static DishNOHolder getInstance() {
        if (ourInstance == null){
            ourInstance = new DishNOHolder();
        }
        return ourInstance;
    }

    private DishNOHolder() {
    }


    public List<DishesType> types;

    public void release() {
        ourInstance.clear();
        ourInstance = null;
    }
}
